package com.zhou.system.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 角色关联表
 * </p>
 *
 * @author zxf
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("sys_role_relation")
@ApiModel(value = "SysRoleRelation对象", description = "角色关联表")
public class SysRoleRelation extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色id", position = 2)
    @JsonProperty(index = 2)
    private Long roleId;

    @ApiModelProperty(value = "内容类型 1菜单，2部门(数据权限)", position = 3)
    @JsonProperty(index = 3)
    private Integer contentType;

    @ApiModelProperty(value = "内容id", position = 4)
    @JsonProperty(index = 4)
    private Long contentId;

    @ApiModelProperty(value = "删除标识;0表示未删除，1表示删除", position = 5)
    @JsonProperty(index = 5)
    private Boolean delFlag;

}
